package cn.ckx.coding.moudle.system.entity;

import cn.ckx.coding.common.dto.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author kunxin.cai
 * @className SystemOrganization
 * @description 系统机构
 * @date 2023/4/12
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("system_organization")
public class SystemOrganization extends BaseEntity {

    /**
     *    `org_code` VARCHAR(35) NULL DEFAULT NULL COMMENT '机构编码',
     * 	`org_name` VARCHAR(50) NOT NULL COMMENT '机构名称',
     * 	`type` INT(5) NULL DEFAULT '0' COMMENT '类型',
     * 	`pid` INT(11) NULL DEFAULT NULL COMMENT '父机构ID',
     * 	`root_path` VARCHAR(50) NULL DEFAULT NULL COMMENT '根全路径',
     * 	`level` INT(11) NULL DEFAULT '0' COMMENT '树形级别',
     * 	`sub_number` INT(11) NULL DEFAULT NULL COMMENT '子节点个数',
     * 	`status` INT(1) NULL DEFAULT '0' COMMENT '状态： 0：正常、 1：停用',
     * 	`sorted` INT(11) NULL DEFAULT '1' COMMENT '排序号',
     * 	`business_type` INT(5) NULL DEFAULT '0' COMMENT '类型',
     */

    private String orgCode;

    private String orgName;

    private String type;

    private String pid;

    private String rootPath;

    private Integer level;

    private Integer subNumber;

    private Integer status;

    private Integer sorted;

    @TableLogic
    private int enabledFlag;
}
